package mapper;

import pojo.HeiZaiOrder;

import java.util.List;
import java.util.Map;

public interface HeiZaiOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(HeiZaiOrder record);

    int insertSelective(HeiZaiOrder record);

    HeiZaiOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(HeiZaiOrder record);

    int updateByPrimaryKey(HeiZaiOrder record);

    HeiZaiOrder selectByOrderId(String orderId);

    List<HeiZaiOrder> selectByUserId(Integer userId);

    List<HeiZaiOrder> selectByRestaurantId(Integer restId);

    List<HeiZaiOrder> selectCompletedByRestaurantId(Map<String, Object> map);

    List<HeiZaiOrder> selectLatestByRestaurantId(Map<String, Object> map);


    int selectUserIdById(Integer id);

    HeiZaiOrder selectById(Integer id);

    int selectTotal(Map<String, Object> map);

    int selectCompletedTotal(Map<String, Object> map);

}
